package func;

/**
 * @author tzp
 * @since 2021/1/16
 */
object FileMatches2 {
  def x = 1 //也是函数??
  def y: () => Int = () => 1

  def main(args: Array[String]): Unit = {
    println(x)
    println(y)
    println(y())
    println(y.isInstanceOf[Function0[Int]])//true
  }
}
